package com.isoft.illustrationsdraw.service;

import java.io.File;
import java.io.IOException;
import java.util.List;

import org.springframework.web.multipart.MultipartFile;

public interface FileService {
    List<File> saveFiles(File targetDir, List<MultipartFile> files) throws IOException, IllegalArgumentException;
    File createDirectory(String targetDir) throws IOException, IllegalArgumentException;
    void cleanDirectory(File dir) throws IOException;
    List<String> listFilesInDirectory(File dir) throws IOException, IllegalArgumentException;
    File getFileByPath(String path);
    List<File> saveFilesForChat(File targetDir, List<MultipartFile> files) throws IOException, IllegalArgumentException;
    String convertToOnlinePath(String localPath) throws IllegalArgumentException;
}

